package com.spike.model;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import org.springframework.stereotype.Component;

import java.util.Date;
@Component
@Data
@TableName("borrow_records")
public class BorrowRecord {
    @TableId(type = IdType.AUTO)
    @JsonProperty("record_id")
    private Integer recordId;
    @JsonProperty("user_id")
    private Integer userId;
    @JsonProperty("book_id")
    private Integer bookId;
    private Date borrowDate;
    private Date returnDate;
    @Version
    private Integer version;
    @TableLogic(value = "1", delval = "0")
    private Integer isDeleted;
}